package com.dataseek.iot.mqtt.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName MqttProperties
 * @Descriptio mqtt配置参数
 * @Author lcy
 * @Date 9:40 2019/7/24
 * @Version 1.0
 **/
@Data
@Configuration
public class MqttProperties {

    @Value("${mqtt.brokerUrl}")
    private String brokerUrl;
    @Value("${mqtt.username}")
    private String username;
    @Value("${mqtt.password}")
    private String password;
    @Value("${mqtt.subscriber.clientId}")
    private String clientId;
    @Value("${mqtt.topic}")
    private String topic;
    private Integer keepAliveInterval = 10;
    private Integer maxInflight = 1000;
}
